package org.example.student_dormitory.dao;

import org.example.student_dormitory.entity.Admin;
import org.example.student_dormitory.entity.Building;
import org.example.student_dormitory.entity.Dormitory;

import java.util.List;

public interface BuildingManagerDao extends BaseDao{
//    //无条件的分页查询
//    public List<Building> selectAll(int page, int pageSize);
//    //有条件查询
//    public List<Building> selectAll(int page, int pageSize, String key, String value);
//    //无条件总数查询
//    public int selectCount();
//    //有条件总数查询
//    public int selectCount(String key, String value);

    public List<Admin> selectAllAdmin();

    public boolean insert(Building building);

    public boolean update(Building building);

    public Boolean deleteById(int id);
}
